package com.jiepu.homework.module5.exercise4;

public class Circle extends Shape {

	double r;

	// 默认半径为1.0
	public Circle() {
		this(1.0);
	}
	// 指定半径
	public Circle(double r) {
		this(0, 0, r);
	}
	// 指定中心点和半径
	public Circle(int x, int y, double r) {
		super(x, y);
		this.r = r;
	}
	
	public void draw() {
		System.out.println("draw in circle：" + x + "," + y
				+ "," + r);
	}

}
